package com.snail.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Monica
 * @description
 * @date 2025/7/18 17:38
 */
@Data
public class CourseBaseDto {
    private Integer id;
    private String title;
    private Integer categoryId;
    private String description;
    private String coverUrl;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private List<CourseOutlinesTreeDto> outlineList;
}
